﻿#pragma once
#include "FlatForm.h"
#include "AsyncHttpUtils.h"
#include "public.h"
#include "Utils.h"
#define QUESTION_ANSWERED		1
#define QUESTION_PENDING		0
#define QUESTION_EXPIRED		-1
#define QUESTION_UNREAD			2
#define MODE_NEW_QUESTION		1
#define MODE_ANSWER_QUESTION	0
#define MODE_SHOW				-1
#define MODE_ADMIN				2
#define RESULT_OK				0
#define RESULT_FAILED			1
namespace rjksClient {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Threading;

		
	/// <summary>
	/// frmQuestion 摘要
	/// </summary>
	public ref class frmQuestion : FlatForm
	{
	public:
		System::Resources::ResourceManager^ ResMgr;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::Label^  lblLineL;
	private: System::Windows::Forms::Label^  lblLineR;


	public: 
		UserInfo uinfo;
		void ShowDetailMethod();
		void SetMode(int mode);
		void GetResultCallback(String^ ret);
		void frmQuestion::RefreshList() ;
		frmQuestion(void)
		{
			InitializeComponent();
			//
			//TODO: 在此处添加构造函数代码
			//
			ResMgr = gcnew System::Resources::ResourceManager("rjksClient.Resource", GetType()->Assembly);
			MaxMinConfig=MAXMIN;
		}
	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~frmQuestion()
		{
			if (components)
			{
				delete components;
			}
		}
		
	private: System::Windows::Forms::SplitContainer^  splitContainer1;
	         System::Windows::Forms::Label^  lblLeftHead;
	         System::Windows::Forms::Label^  lblRightHead;
	         System::Windows::Forms::Label^  lblRightTriangle;
	         System::Windows::Forms::ListBox^  listBox1;
	         System::Windows::Forms::Label^  lblQFullDesc;
	         System::Windows::Forms::Label^  lblQTime;
	         System::Windows::Forms::Label^  lblQUname;
	         System::Windows::Forms::Label^  label3;
	         System::Windows::Forms::Label^  lblIndicator;
	         System::Windows::Forms::Label^  lblQAnswer;
	         System::Windows::Forms::Button^  btnQSend;

	         System::Windows::Forms::Button^  btnQAddNew;
	         System::Windows::Forms::TextBox^  txtQSend;
	         System::Windows::Forms::TextBox^  txtQNew;
	         System::Windows::Forms::Label^  lblResult;
	         System::Windows::Forms::Button^  btnQDel;
			 System::Windows::Forms::Label^  lblQTitle;
	         System::ComponentModel::IContainer^  components;

			 static int last_click=Environment::TickCount;
			 static Thread^ LoadDetailAsyncThread;
			 void WaitClick();
			 delegate void ShowDetail();



	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// 设计器支持所需的方法 - 不要
		/// 使用代码编辑器修改此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(frmQuestion::typeid));
			this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer());
			this->lblLeftHead = (gcnew System::Windows::Forms::Label());
			this->lblLineL = (gcnew System::Windows::Forms::Label());
			this->listBox1 = (gcnew System::Windows::Forms::ListBox());
			this->txtQSend = (gcnew System::Windows::Forms::TextBox());
			this->lblQAnswer = (gcnew System::Windows::Forms::Label());
			this->lblRightHead = (gcnew System::Windows::Forms::Label());
			this->lblLineR = (gcnew System::Windows::Forms::Label());
			this->btnQDel = (gcnew System::Windows::Forms::Button());
			this->btnQSend = (gcnew System::Windows::Forms::Button());
			this->lblResult = (gcnew System::Windows::Forms::Label());
			this->lblIndicator = (gcnew System::Windows::Forms::Label());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->txtQNew = (gcnew System::Windows::Forms::TextBox());
			this->btnQAddNew = (gcnew System::Windows::Forms::Button());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->lblQUname = (gcnew System::Windows::Forms::Label());
			this->lblQTime = (gcnew System::Windows::Forms::Label());
			this->lblQFullDesc = (gcnew System::Windows::Forms::Label());
			this->lblQTitle = (gcnew System::Windows::Forms::Label());
			this->lblRightTriangle = (gcnew System::Windows::Forms::Label());
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->splitContainer1))->BeginInit();
			this->splitContainer1->Panel1->SuspendLayout();
			this->splitContainer1->Panel2->SuspendLayout();
			this->splitContainer1->SuspendLayout();
			this->SuspendLayout();
			// 
			// splitContainer1
			// 
			this->splitContainer1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
				| System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->splitContainer1->Font = (gcnew System::Drawing::Font(L"微软雅黑", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->splitContainer1->Location = System::Drawing::Point(4, 28);
			this->splitContainer1->Margin = System::Windows::Forms::Padding(3, 4, 3, 4);
			this->splitContainer1->Name = L"splitContainer1";
			// 
			// splitContainer1.Panel1
			// 
			this->splitContainer1->Panel1->Controls->Add(this->lblLeftHead);
			this->splitContainer1->Panel1->Controls->Add(this->lblLineL);
			this->splitContainer1->Panel1->Controls->Add(this->listBox1);
			// 
			// splitContainer1.Panel2
			// 
			this->splitContainer1->Panel2->Controls->Add(this->txtQSend);
			this->splitContainer1->Panel2->Controls->Add(this->lblQAnswer);
			this->splitContainer1->Panel2->Controls->Add(this->lblRightHead);
			this->splitContainer1->Panel2->Controls->Add(this->lblLineR);
			this->splitContainer1->Panel2->Controls->Add(this->btnQDel);
			this->splitContainer1->Panel2->Controls->Add(this->btnQSend);
			this->splitContainer1->Panel2->Controls->Add(this->lblResult);
			this->splitContainer1->Panel2->Controls->Add(this->lblIndicator);
			this->splitContainer1->Panel2->Controls->Add(this->label1);
			this->splitContainer1->Panel2->Controls->Add(this->txtQNew);
			this->splitContainer1->Panel2->Controls->Add(this->btnQAddNew);
			this->splitContainer1->Panel2->Controls->Add(this->label3);
			this->splitContainer1->Panel2->Controls->Add(this->lblQUname);
			this->splitContainer1->Panel2->Controls->Add(this->lblQTime);
			this->splitContainer1->Panel2->Controls->Add(this->lblQFullDesc);
			this->splitContainer1->Panel2->Controls->Add(this->lblQTitle);
			this->splitContainer1->Panel2->Controls->Add(this->lblRightTriangle);
			this->splitContainer1->Size = System::Drawing::Size(869, 577);
			this->splitContainer1->SplitterDistance = 251;
			this->splitContainer1->TabIndex = 0;
			// 
			// lblLeftHead
			// 
			this->lblLeftHead->AutoSize = true;
			this->lblLeftHead->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(192)), static_cast<System::Int32>(static_cast<System::Byte>(57)), 
				static_cast<System::Int32>(static_cast<System::Byte>(43)));
			this->lblLeftHead->Font = (gcnew System::Drawing::Font(L"微软雅黑", 10.8F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblLeftHead->ForeColor = System::Drawing::Color::White;
			this->lblLeftHead->Location = System::Drawing::Point(3, 1);
			this->lblLeftHead->Name = L"lblLeftHead";
			this->lblLeftHead->Size = System::Drawing::Size(88, 25);
			this->lblLeftHead->TabIndex = 1;
			this->lblLeftHead->Text = L"问题列表";
			// 
			// lblLineL
			// 
			this->lblLineL->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->lblLineL->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(192)), static_cast<System::Int32>(static_cast<System::Byte>(57)), 
				static_cast<System::Int32>(static_cast<System::Byte>(43)));
			this->lblLineL->Font = (gcnew System::Drawing::Font(L"微软雅黑", 10.8F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblLineL->ForeColor = System::Drawing::Color::White;
			this->lblLineL->Location = System::Drawing::Point(-2, 23);
			this->lblLineL->Name = L"lblLineL";
			this->lblLineL->Size = System::Drawing::Size(270, 4);
			this->lblLineL->TabIndex = 3;
			// 
			// listBox1
			// 
			this->listBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
				| System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->listBox1->DrawMode = System::Windows::Forms::DrawMode::OwnerDrawFixed;
			this->listBox1->FormattingEnabled = true;
			this->listBox1->ItemHeight = 60;
			this->listBox1->Location = System::Drawing::Point(3, 28);
			this->listBox1->Margin = System::Windows::Forms::Padding(3, 4, 3, 4);
			this->listBox1->Name = L"listBox1";
			this->listBox1->Size = System::Drawing::Size(248, 544);
			this->listBox1->TabIndex = 2;
			this->listBox1->DrawItem += gcnew System::Windows::Forms::DrawItemEventHandler(this, &frmQuestion::listBox1_DrawItem);
			this->listBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &frmQuestion::listBox1_SelectedIndexChanged);
			// 
			// txtQSend
			// 
			this->txtQSend->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->txtQSend->Location = System::Drawing::Point(35, 326);
			this->txtQSend->Multiline = true;
			this->txtQSend->Name = L"txtQSend";
			this->txtQSend->Size = System::Drawing::Size(556, 168);
			this->txtQSend->TabIndex = 13;
			this->txtQSend->Visible = false;
			// 
			// lblQAnswer
			// 
			this->lblQAnswer->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->lblQAnswer->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(230)), static_cast<System::Int32>(static_cast<System::Byte>(126)), 
				static_cast<System::Int32>(static_cast<System::Byte>(34)));
			this->lblQAnswer->Font = (gcnew System::Drawing::Font(L"微软雅黑", 10.8F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblQAnswer->ForeColor = System::Drawing::Color::White;
			this->lblQAnswer->Location = System::Drawing::Point(39, 324);
			this->lblQAnswer->Name = L"lblQAnswer";
			this->lblQAnswer->Size = System::Drawing::Size(552, 168);
			this->lblQAnswer->TabIndex = 10;
			this->lblQAnswer->Text = L"尚未回复";
			// 
			// lblRightHead
			// 
			this->lblRightHead->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Right));
			this->lblRightHead->AutoSize = true;
			this->lblRightHead->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(211)), static_cast<System::Int32>(static_cast<System::Byte>(84)), 
				static_cast<System::Int32>(static_cast<System::Byte>(0)));
			this->lblRightHead->Font = (gcnew System::Drawing::Font(L"微软雅黑", 10.8F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblRightHead->ForeColor = System::Drawing::Color::White;
			this->lblRightHead->Location = System::Drawing::Point(558, 1);
			this->lblRightHead->Name = L"lblRightHead";
			this->lblRightHead->Size = System::Drawing::Size(50, 25);
			this->lblRightHead->TabIndex = 2;
			this->lblRightHead->Text = L"详情";
			// 
			// lblLineR
			// 
			this->lblLineR->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->lblLineR->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(211)), static_cast<System::Int32>(static_cast<System::Byte>(84)), 
				static_cast<System::Int32>(static_cast<System::Byte>(0)));
			this->lblLineR->Font = (gcnew System::Drawing::Font(L"微软雅黑", 10.8F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblLineR->ForeColor = System::Drawing::Color::White;
			this->lblLineR->Location = System::Drawing::Point(-2, 23);
			this->lblLineR->Name = L"lblLineR";
			this->lblLineR->Size = System::Drawing::Size(622, 4);
			this->lblLineR->TabIndex = 18;
			// 
			// btnQDel
			// 
			this->btnQDel->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
			this->btnQDel->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(127)), static_cast<System::Int32>(static_cast<System::Byte>(140)), 
				static_cast<System::Int32>(static_cast<System::Byte>(141)));
			this->btnQDel->FlatAppearance->BorderColor = System::Drawing::Color::White;
			this->btnQDel->FlatAppearance->BorderSize = 2;
			this->btnQDel->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
			this->btnQDel->ForeColor = System::Drawing::Color::White;
			this->btnQDel->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"btnQDel.Image")));
			this->btnQDel->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnQDel->Location = System::Drawing::Point(477, 502);
			this->btnQDel->Name = L"btnQDel";
			this->btnQDel->Size = System::Drawing::Size(114, 36);
			this->btnQDel->TabIndex = 16;
			this->btnQDel->Text = L"删除问题";
			this->btnQDel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->btnQDel->UseVisualStyleBackColor = false;
			this->btnQDel->Click += gcnew System::EventHandler(this, &frmQuestion::btnQDel_Click);
			// 
			// btnQSend
			// 
			this->btnQSend->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
			this->btnQSend->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(230)), static_cast<System::Int32>(static_cast<System::Byte>(126)), 
				static_cast<System::Int32>(static_cast<System::Byte>(34)));
			this->btnQSend->FlatAppearance->BorderColor = System::Drawing::Color::White;
			this->btnQSend->FlatAppearance->BorderSize = 2;
			this->btnQSend->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
			this->btnQSend->ForeColor = System::Drawing::Color::White;
			this->btnQSend->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"btnQSend.Image")));
			this->btnQSend->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnQSend->Location = System::Drawing::Point(477, 502);
			this->btnQSend->Name = L"btnQSend";
			this->btnQSend->Size = System::Drawing::Size(114, 36);
			this->btnQSend->TabIndex = 11;
			this->btnQSend->Text = L"提交回复";
			this->btnQSend->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->btnQSend->UseVisualStyleBackColor = false;
			this->btnQSend->Click += gcnew System::EventHandler(this, &frmQuestion::btnQSend_Click);
			// 
			// lblResult
			// 
			this->lblResult->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));
			this->lblResult->AutoSize = true;
			this->lblResult->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(230)), static_cast<System::Int32>(static_cast<System::Byte>(126)), 
				static_cast<System::Int32>(static_cast<System::Byte>(34)));
			this->lblResult->Font = (gcnew System::Drawing::Font(L"微软雅黑 Light", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblResult->ForeColor = System::Drawing::Color::White;
			this->lblResult->Location = System::Drawing::Point(34, 505);
			this->lblResult->Name = L"lblResult";
			this->lblResult->Size = System::Drawing::Size(112, 27);
			this->lblResult->TabIndex = 15;
			this->lblResult->Text = L"提交成功！";
			this->lblResult->Visible = false;
			// 
			// lblIndicator
			// 
			this->lblIndicator->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));
			this->lblIndicator->AutoSize = true;
			this->lblIndicator->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(230)), static_cast<System::Int32>(static_cast<System::Byte>(126)), 
				static_cast<System::Int32>(static_cast<System::Byte>(34)));
			this->lblIndicator->Font = (gcnew System::Drawing::Font(L"微软雅黑", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblIndicator->ForeColor = System::Drawing::Color::White;
			this->lblIndicator->Location = System::Drawing::Point(51, 304);
			this->lblIndicator->Name = L"lblIndicator";
			this->lblIndicator->Size = System::Drawing::Size(69, 19);
			this->lblIndicator->TabIndex = 9;
			this->lblIndicator->Text = L"导师回复";
			// 
			// label1
			// 
			this->label1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->label1->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(230)), static_cast<System::Int32>(static_cast<System::Byte>(126)), 
				static_cast<System::Int32>(static_cast<System::Byte>(34)));
			this->label1->Location = System::Drawing::Point(19, 298);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(589, 250);
			this->label1->TabIndex = 17;
			// 
			// txtQNew
			// 
			this->txtQNew->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->txtQNew->Font = (gcnew System::Drawing::Font(L"微软雅黑", 13.8F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->txtQNew->Location = System::Drawing::Point(35, 33);
			this->txtQNew->Name = L"txtQNew";
			this->txtQNew->Size = System::Drawing::Size(452, 38);
			this->txtQNew->TabIndex = 14;
			this->txtQNew->Visible = false;
			// 
			// btnQAddNew
			// 
			this->btnQAddNew->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Right));
			this->btnQAddNew->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(231)), static_cast<System::Int32>(static_cast<System::Byte>(76)), 
				static_cast<System::Int32>(static_cast<System::Byte>(60)));
			this->btnQAddNew->FlatAppearance->BorderColor = System::Drawing::Color::White;
			this->btnQAddNew->FlatAppearance->BorderSize = 0;
			this->btnQAddNew->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
			this->btnQAddNew->ForeColor = System::Drawing::Color::White;
			this->btnQAddNew->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"btnQAddNew.Image")));
			this->btnQAddNew->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnQAddNew->Location = System::Drawing::Point(493, 33);
			this->btnQAddNew->Name = L"btnQAddNew";
			this->btnQAddNew->Size = System::Drawing::Size(98, 37);
			this->btnQAddNew->TabIndex = 12;
			this->btnQAddNew->Text = L"+新问题";
			this->btnQAddNew->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->btnQAddNew->UseVisualStyleBackColor = false;
			this->btnQAddNew->Click += gcnew System::EventHandler(this, &frmQuestion::btnQAddNew_Click);
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Font = (gcnew System::Drawing::Font(L"微软雅黑 Light", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->label3->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(64)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
				static_cast<System::Int32>(static_cast<System::Byte>(0)));
			this->label3->Location = System::Drawing::Point(184, 74);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(13, 20);
			this->label3->TabIndex = 8;
			this->label3->Text = L"|";
			// 
			// lblQUname
			// 
			this->lblQUname->AutoSize = true;
			this->lblQUname->Font = (gcnew System::Drawing::Font(L"微软雅黑 Light", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblQUname->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(192)), static_cast<System::Int32>(static_cast<System::Byte>(64)), 
				static_cast<System::Int32>(static_cast<System::Byte>(0)));
			this->lblQUname->Location = System::Drawing::Point(193, 74);
			this->lblQUname->Name = L"lblQUname";
			this->lblQUname->Size = System::Drawing::Size(54, 20);
			this->lblQUname->TabIndex = 6;
			this->lblQUname->Text = L"奥特曼";
			// 
			// lblQTime
			// 
			this->lblQTime->Font = (gcnew System::Drawing::Font(L"微软雅黑 Light", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblQTime->ForeColor = System::Drawing::Color::DimGray;
			this->lblQTime->Location = System::Drawing::Point(31, 74);
			this->lblQTime->Name = L"lblQTime";
			this->lblQTime->Size = System::Drawing::Size(156, 20);
			this->lblQTime->TabIndex = 5;
			this->lblQTime->Text = L"2013年12月22日 05:37";
			this->lblQTime->Click += gcnew System::EventHandler(this, &frmQuestion::lblQTime_Click);
			// 
			// lblQFullDesc
			// 
			this->lblQFullDesc->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->lblQFullDesc->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(64)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
				static_cast<System::Int32>(static_cast<System::Byte>(0)));
			this->lblQFullDesc->Location = System::Drawing::Point(31, 94);
			this->lblQFullDesc->Name = L"lblQFullDesc";
			this->lblQFullDesc->Size = System::Drawing::Size(560, 158);
			this->lblQFullDesc->TabIndex = 4;
			this->lblQFullDesc->Text = L"问题描述";
			// 
			// lblQTitle
			// 
			this->lblQTitle->AutoSize = true;
			this->lblQTitle->Font = (gcnew System::Drawing::Font(L"微软雅黑", 16.2F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->lblQTitle->Location = System::Drawing::Point(29, 38);
			this->lblQTitle->Name = L"lblQTitle";
			this->lblQTitle->Size = System::Drawing::Size(71, 36);
			this->lblQTitle->TabIndex = 3;
			this->lblQTitle->Text = L"标题";
			// 
			// lblRightTriangle
			// 
			this->lblRightTriangle->Anchor = System::Windows::Forms::AnchorStyles::Left;
			this->lblRightTriangle->AutoSize = true;
			this->lblRightTriangle->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(241)), 
				static_cast<System::Int32>(static_cast<System::Byte>(196)), static_cast<System::Int32>(static_cast<System::Byte>(15)));
			this->lblRightTriangle->Location = System::Drawing::Point(-3, 285);
			this->lblRightTriangle->Name = L"lblRightTriangle";
			this->lblRightTriangle->Size = System::Drawing::Size(22, 20);
			this->lblRightTriangle->TabIndex = 2;
			this->lblRightTriangle->Text = L"▶";
			// 
			// frmQuestion
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(9, 20);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(878, 610);
			this->Controls->Add(this->splitContainer1);
			this->Margin = System::Windows::Forms::Padding(3, 5, 3, 5);
			this->Name = L"frmQuestion";
			this->Text = L"问与答";
			this->Load += gcnew System::EventHandler(this, &frmQuestion::frmQuestion_Load);
			this->Controls->SetChildIndex(this->splitContainer1, 0);
			this->splitContainer1->Panel1->ResumeLayout(false);
			this->splitContainer1->Panel1->PerformLayout();
			this->splitContainer1->Panel2->ResumeLayout(false);
			this->splitContainer1->Panel2->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->splitContainer1))->EndInit();
			this->splitContainer1->ResumeLayout(false);
			this->ResumeLayout(false);

		}
#pragma endregion

	private: System::Void listBox1_DrawItem(System::Object^  sender, System::Windows::Forms::DrawItemEventArgs^  e) ;
private: System::Void listBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) ;
private: System::Void btnQAddNew_Click(System::Object^  sender, System::EventArgs^  e) ;
private: System::Void frmQuestion_Load(System::Object^  sender, System::EventArgs^  e) {
			 APIUtils::SetCueText(txtQNew,L"在此输入问题标题");
			 if(uinfo.level==LEVEL_ADMIN)
				 SetMode(MODE_ADMIN);
			 else if (uinfo.level==LEVEL_TEACHER)
				 SetMode(MODE_ANSWER_QUESTION);
			 else
				SetMode(MODE_SHOW);
			 RefreshList();
		 }
private: System::Void btnQSend_Click(System::Object^  sender, System::EventArgs^  e) ;
private: System::Void btnQDel_Click(System::Object^  sender, System::EventArgs^  e) ;
private: System::Void lblQTime_Click(System::Object^  sender, System::EventArgs^  e) {
		 }
};
}
